 package com.cxl.other.view;
 
 import java.io.BufferedReader;
 import java.io.IOException;
 import java.io.InputStreamReader;
 import java.io.PrintStream;
 import java.io.PrintWriter;
 import java.net.Socket;
 import java.net.UnknownHostException;
 
 public class MyClient
 {
   public static void main(String[] str)
   {
     try
     {
       Socket socket = new Socket("192.168.2.100", 8888);
       BufferedReader in = new BufferedReader(new InputStreamReader(socket.getInputStream()));
       PrintWriter out = new PrintWriter(socket.getOutputStream());
       BufferedReader w = new BufferedReader(new InputStreamReader(System.in));
       String line;
       do
       {
         line = w.readLine();
         out.println(line);
         out.flush();
         System.out.println("message" + in.readLine());
       }while (!"exit".equals(line));
 
       socket.close();
     }
     catch (UnknownHostException e)
     {
       e.printStackTrace();
     }
     catch (IOException e) {
       e.printStackTrace();
     }
   }
 }

/* Location:           E:\work\eclipse3.6_\workspace\design_pattern\
 * Qualified Name:     com.cxl.other.view.MyClient
 * JD-Core Version:    0.6.1
 */